package java56_7.ex;

public class CalcTest {

	public static void main(String[] args) {
		// Calculator c = new Calculator();
		//
		// int r1 = c.divide(0, 13);
		// System.out.println("r1=" + r1);
		// int r2 = c.divide(13, 0);
		// System.out.println("r2=" + r2);

		Calculator2 c2 = new Calculator2();
		try {
			int r1 = c2.divide(13, 0);
			System.out.println(r1);
		} catch (Exception e) {
			System.out.println("除法出现错误");
			e.printStackTrace();
		}

	}

}
